home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / gzip 1.2.2 / vms / makegzip.com < prev    next >
Encoding:
Text File  |  1993-06-22  |  2.4 KB  |  74 lines  |  [TEXT/MPS ]

  1. $! Makefile for VMS
  2. $! DCL-Shell-language. Edit the symbols section at the end.
  3. $!
  4. $ On Control_Y Then Goto The_Exit
  5. $ On Error Then Goto The_Exit
  6. $ define/user sys sys$library
  7. $ cc gzip.c /define=(VAXC)
  8. $ define/user sys sys$library
  9. $ cc zip.c /define=(VAXC)
  10. $ define/user sys sys$library
  11. $ cc deflate.c /define=(VAXC)
  12. $ define/user sys sys$library
  13. $ cc trees.c /define=(VAXC)
  14. $ define/user sys sys$library
  15. $ cc bits.c /define=(VAXC)
  16. $ define/user sys sys$library
  17. $ cc unzip.c /define=(VAXC)
  18. $ define/user sys sys$library
  19. $ cc inflate.c /define=(VAXC)
  20. $ define/user sys sys$library
  21. $ cc util.c /define=(VAXC)
  22. $ define/user sys sys$library
  23. $ cc crypt.c /define=(VAXC)
  24. $ define/user sys sys$library
  25. $ cc lzw.c /define=(VAXC)
  26. $ define/user sys sys$library
  27. $ cc unlzw.c /define=(VAXC)
  28. $ define/user sys sys$library
  29. $ cc unpack.c /define=(VAXC)
  30. $ define/user sys sys$library
  31. $ cc unlzh.c /define=(VAXC)
  32. $ define/user sys sys$library
  33. $ cc getopt.c /define=(VAXC)
  34. $ define/user sys sys$library
  35. $ cc vms.c /define=(VAXC)
  36. $ define/user sys sys$library
  37. $ cc alloca.c /define=(VAXC)
  38. $ linkobjs:=gzip.obj zip.obj deflate.obj trees.obj bits.obj unzip.obj -
  39.    inflate.obj util.obj crypt.obj lzw.obj unlzw.obj unpack.obj unlzh.obj -
  40.    getopt.obj vms.obj alloca.obj
  41. $ Schleife:
  42. $ p = f$locate(" ",linkobjs)
  43. $ if p .lt. f$length(linkobjs)
  44. $ then    linkobjs[p,1]:=","
  45. $ goto Schleife
  46. $ endif
  47. $ write sys$output "linking ''linkobjs'"
  48. $ link  /exec=gzip.exe  'linkobjs',sys$input/opt
  49. SYS$LIBRARY:VAXCRTL/SHARE 
  50. $
  51. $ ! Create a hard link.  (To remove both files, delete the copy FIRST, then
  52. $ ! the original.  Otherwise, if original deleted first [copy says "no such
  53. $ ! file"], must use "set file/remove gunzip.exe;#" to get rid of the copy.
  54. $ ! Unlike in Unix, deleting the original ALWAYS destroys the data--but not
  55. $ ! the directory entry of the copy.)  Using a hard link saves disk space, by
  56. $ ! the way.  Note, however, that copying a hard link copies the data, not
  57. $ ! just the link.  Therefore, set up the link in the directory in which the
  58. $ ! executable is to reside, or else rename (move) the executables into the
  59. $ ! directory.
  60. $ !
  61. $ set file/enter=gunzip.exe gzip.exe
  62. $ set file/enter=zcat.exe   gzip.exe
  63. $
  64. $ ! Set up symbols for the gzip executable.  Edit the example below,
  65. $ ! changing "disk:[directory]" as appropriate.
  66. $ !
  67. $ gzip   == "$disk:[directory]gzip.exe"
  68. $ gunzip == "$disk:[directory]gunzip.exe"
  69. $ zcat   == "$disk:[directory]zcat.exe"
  70. $
  71. $The_Exit:
  72. $ Save_Status = $STATUS
  73. $ exit Save_Status
  74.